import { defineStore } from 'pinia';

type State = {
  requests: TypeObject[],
  bg:string
}
export const requestStore = defineStore('_request', {
  state: (): State => ({
    requests: [],
    bg:'var(--maia-bg)'
  }),
  actions: {
    addRequest(controller: any) {
      this.requests.push(controller);
    },
    changeBg(controller: any) {
      this.bg = controller;
    },
    clearRequest() {
      this.requests = [];
    },
  },
});
